// AI 对话消息模型
export interface ChatMessage {
  id: string;
  role: 'user' | 'assistant' | 'system';
  content: string;
  timestamp: Date;
  isLoading?: boolean;
}

// AI 请求配置
export interface AIRequestConfig {
  model?: string;
  temperature?: number;
  maxTokens?: number;
  stream?: boolean;
}

// AI 响应
export interface AIResponse {
  content: string;
  usage?: {
    promptTokens: number;
    completionTokens: number;
    totalTokens: number;
  };
}

// AI 功能类型
export type AIFeatureType = 'chat' | 'generate-description' | 'search-suggest';

// 商品描述生成请求
export interface GenerateDescriptionRequest {
  name: string;
  category: string;
  price: number;
  stock?: number;
}
